<% unless params[:search].blank? %>
  <h3>Results for "<%=h params[:search] %>"</h3>
<% end %>
<%= render :partial => 'shared/topics' %>

<% has_pages? do -%>
<div class="pagination">
<%= prev_page 'Prev' %>
<%= all_pages({}, :class => 'page_link') %>
<%= next_page 'Next' %>
</div>
<% end -%>